malloc->xmalloc.
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Tue, 21 Jun 2005 06:15:46 +0000 (06:15 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Tue, 21 Jun 2005 06:15:46 +0000 (06:15 +0000)
gpsbabel/kml.c

index 4fd3a8616f62a4f675cd9fe6347beaaf76bdb13c..d7c5fa35667f9308c0837e92009b08381a8e83e0 100644 (file)
@@ -208,7 +208,7 @@ static void kml_output_header(const route_head *header)
 
         // Create an array for holding waypoint coordinates so that we
         // can produce a LineString at the end.
-        point3d_list = (point3d *) malloc(header->rte_waypt_ct * sizeof(point3d));
+        point3d_list = (point3d *) xmalloc(header->rte_waypt_ct * sizeof(point3d));
         point3d_list_len = 0;
 }